From: Sebastian Kemper Date: Fri, 9 Mar 2018 13:47:32 +0000 (+0100) Subject: asterisk-chan-dongle: simplify Makefile X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=b22af0210ec5f3779b60c6956c45c421beb1eed6;p=feed%2Ftelephony.git asterisk-chan-dongle: simplify Makefile Simplify the Makefile by using the default Build/Compile routine. Signed-off-by: Sebastian Kemper --- diff --git a/net/asterisk-chan-dongle/Makefile b/net/asterisk-chan-dongle/Makefile index 21a655b..ea358ec 100644 --- a/net/asterisk-chan-dongle/Makefile +++ b/net/asterisk-chan-dongle/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2017 OpenWrt.org +# Copyright (C) 2017 - 2018 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -74,28 +74,11 @@ CONFIGURE_ARGS+= \ TARGET_CFLAGS+= \ -I$(CHAN_DONGLE_AST_HEADERS) -# musl and glibc include their own iconv, but uclibc does not -ifneq ($(CONFIG_USE_UCLIBC),) -TARGET_CPPFLAGS+= \ - -I$(STAGING_DIR)/usr/lib/libiconv-full/include -endif +MAKE_FLAGS+=LD="$(TARGET_CC)" -# -DAST_MODULE_SELF_SYM=__internal_chan_dongle_self to fix Asterisk 14 -# compile issues -CHAN_DONGLE_EXTRA_CFLAGS:= \ - -Wno-old-style-declaration \ - -I$(PKG_BUILD_DIR) \ - -DAST_MODULE_SELF_SYM=__internal_chan_dongle_self \ - $(TARGET_CPPFLAGS) \ - -D_GNU_SOURCE \ - -DHAVE_CONFIG_H \ - $(FPIC) - -MAKE_ARGS:= \ - CC="$(TARGET_CC)" \ - LD="$(TARGET_CC)" \ - CFLAGS="$(TARGET_CFLAGS) $(CHAN_DONGLE_EXTRA_CFLAGS)" \ - LDFLAGS="$(TARGET_LDFLAGS) $(if $(CONFIG_USE_UCLIBC),-L$(STAGING_DIR)/usr/lib/libiconv-full/lib -liconv)" +# musl and glibc include their own iconv, but uclibc does not +TARGET_CPPFLAGS+=$(if $(CONFIG_USE_UCLIBC),-I$(STAGING_DIR)/usr/lib/libiconv-full/include) +TARGET_LDFLAGS+=$(if $(CONFIG_USE_UCLIBC),-L$(STAGING_DIR)/usr/lib/libiconv-full/lib -liconv) # $CHAN_DONGLE_ICONV_INC used by 200-fix-iconv-detection.patch CONFIGURE_VARS += \ @@ -103,10 +86,6 @@ CONFIGURE_VARS += \ ac_cv_type_size_t=yes \ ac_cv_type_ssize_t=yes -define Build/Compile - $(MAKE) $(PKG_JOBS) -C "$(PKG_BUILD_DIR)" $(MAKE_ARGS) -endef - define Package/conffiles/Default /etc/asterisk/dongle.conf endef